Mutable Seg2
Represents a mutable segment in 2D space defined by a start and end point.
Properties
Functions
Link copied to clipboard
open fun eq(other: Segment2<*>, equivalence: DoubleEquivalence = DEFAULT_DOUBLE_EQUIVALENCE): Boolean
Checks if this segment is equal to another segment, considering the order of points irrelevant.
Link copied to clipboard
open fun intersection(other: Segment2<*>, equivalence: DoubleEquivalence = DEFAULT_DOUBLE_EQUIVALENCE): IntersectionData<Vec2>
Compute the intersection of this segment with another segment.
Link copied to clipboard
Reverses the segment, swapping its start and end points.
Link copied to clipboard
Applies a transformation to the endpoints of this segment.